package com.example.hctorisrael.deadolympics;

import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

/**
 * Created by HéctorIsrael on 20/04/2015.
 */
public class Bala {

    private Sprite spriteBala;

    public Bala(float x, float y, ITextureRegion regionBala, VertexBufferObjectManager vbom){
        spriteBala = new Sprite(x,y,regionBala,vbom);
    }

    public void moverBala(float dx, float dy){
        spriteBala.setPosition(spriteBala.getX()+dx, spriteBala.getY()+dy);
    }

    public void girarBala(int grados){
        spriteBala.setRotation(spriteBala.getRotationCenterX()+grados);
    }


    public Sprite getSpriteBala(){
        return spriteBala;
    }
}
